package cn.fxl.pet.domain;

import cn.fxl.basic.domain.BasicDomain;
import cn.fxl.org.domain.Department;
import cn.fxl.org.domain.Shop;
import cn.fxl.user.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 实体类：
 */
@Data
public class Pet extends BasicDomain{

    private String name;
    private BigDecimal costprice;
    private BigDecimal saleprice;
    /**
     * 类型id
     */
    private Long type_id;
    private String resources;
    /**
     * 状态：0下架 1上架
     */
    private Integer state=0;
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd hh:mm:ss")
    private Date offsaletime ;
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd hh:mm:ss")
    private Date onsaletime ;
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createtime =new Date();
    /**
     * 店铺Id 如果被领养店铺id为null
     */
    private Long shop_id;
    /**
     * 如果被领养为领养用户id
     */
    private Long user_id;
    private Long search_master_msg_id;
    private PetType petTypes;
    private Shop shop;
    private User user;
    private PetDetail petDetail;
}
